package com.lzj.demo.design.adapter;

import com.lzj.demo.design.adapter.service.impl.InsideOrderServiceImpl;
import com.lzj.demo.design.adapter.service.impl.POPOrderServiceImpl;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class TestInterfaceAdapter {
    public static void main(String[] args) {
        InterfaceAdapter insideOrderService = new InsideOrderServiceImpl();
        log.info("判断首单,接口适配(自营):{}",insideOrderService.isFirst("1001"));

        InterfaceAdapter popOrderService = new POPOrderServiceImpl();
        log.info("判断首单,接口适配(POP):{}",popOrderService.isFirst("1001"));
    }
}
